package com.open.api.ftp.common;

/**
 * 响应状态码枚举
 */

public enum CodeEnum {
    /**
     * 返回值编码
     * 0 成功
     * 1 错误
     * 2 参数错误
     * 3. 数据不完整或不正确
     */
    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    TPYE_ILLEGAL_ARGUMENT(2,"Head type 类型入参格式不正确"),
    INCOMPLETE_DATA(3,"INCOMPLETE_DATA");

    private final int code;
    private final String msg;

    CodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}

